
package com.ld.security.common.shiro.realm;

import com.ld.security.common.shiro.service.BaseAuthService;
import com.ld.security.common.shiro.service.JwtAuthService;
import com.ld.security.common.shiro.token.JwtToken;
import org.apache.shiro.authc.AuthenticationException;
import org.apache.shiro.authc.AuthenticationInfo;
import org.apache.shiro.authc.AuthenticationToken;
import org.apache.shiro.authz.AuthorizationInfo;
import org.apache.shiro.realm.AuthorizingRealm;
import org.apache.shiro.subject.PrincipalCollection;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * 基于JWT（ JSON WEB TOKEN）的控制域
 * 
 * @author wangjie (https://github.com/wj596)
 * @date 2016年6月31日
 */
public class JwtRealm extends BaseAuthRealm{



	public Class<?> getAuthenticationTokenClass() {
		return JwtToken.class;
	}




	@Override
	protected String getUsername(AuthenticationToken authenticationToken) {
		return null;
	}

	@Override
	protected String getUsername(PrincipalCollection principalCollection) {
		return null;
	}


}